import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import React from 'react';

const Stack = createNativeStackNavigator();

import RecordScreen from './src/screens/RecordScreen';
import DetailsScreen from './src/screens/DetailsScreen';
import CartScreen from './src/screens/CartScreen';

const App = () => {
  return (
    <NavigationContainer>
      <Stack.Navigator initialRouteName="Cart" screenOptions={{ headerShown: false }}>
        <Stack.Screen name="Record" component={RecordScreen} />
        <Stack.Screen name="Details" component={DetailsScreen} />
        <Stack.Screen name="Cart" component={CartScreen} />
      </Stack.Navigator>
    </NavigationContainer>
  );
};

export default App;
